package cn.com.chengmandian.bike.event;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.math.BigDecimal;
import java.util.Date;

@Getter
public class ScanErrorEvent extends ApplicationEvent {

    @ApiModelProperty("钉钉运维通知群")
    private String ddOpsToken;

    @ApiModelProperty("区域名称")
    private String areaName;

    @ApiModelProperty("车辆编号")
    private String bikeNo;

    @ApiModelProperty("用户名")
    private String memberName;

    @ApiModelProperty("手机号")
    private String memberPhone;

    @ApiModelProperty("用户经度")
    private BigDecimal lng;

    @ApiModelProperty("用户维度")
    private BigDecimal lat;

    @ApiModelProperty("日期")
    private Date date;

    public ScanErrorEvent(Object source,String ddOpsToken,String areaName,String bikeNo,String memberName,String memberPhone,BigDecimal lng,BigDecimal lat,Date date) {
        super(source);
        this.ddOpsToken = ddOpsToken;
        this.areaName = areaName;
        this.bikeNo = bikeNo;
        this.memberName = memberName;
        this.memberPhone = memberPhone;
        this.lng = lng;
        this.lat = lat;
        this.date = date;
    }
}
